package com.eptok.gw.szcups.cups.busi;

import com.eptok.gw.szcups.common.GateWayConstant;
import com.eptok.gw.szcups.cups.busi.impl.ResetKeyBusiImpl;

/**
 *@author:heqishan, Email:heqishan@gmail.com
 *2013-3-20 下午03:37:13
 */
public class PassiveBusiFactory {
	
	/**
	 * 获取业务处理实例
	 * @param messageID	报文类型
	 * @return
	 * @throws Exception 
	 */
	public static CupsBusiInterface getBusiInstance(String messageID) throws Exception{
		
		if(GateWayConstant.MSG_CODE_SING_RESET_REQ.equals(messageID)){		//重置密钥
			return new ResetKeyBusiImpl();
		}else if(GateWayConstant.MSG_CODE_RELATIONSHIP_NOTIFY_REQ.equals(messageID)){		//建立委托关系/撤销委托关系通知
			return new ResetKeyBusiImpl();
		}else{
			throw new Exception("未识别的银联请求类型:" + messageID);
		}
	} 

}
